import EChart from 'Component/Chart/EChart'

class Pie extends EChart {
  option = {
    xAxis: {
      type: 'category',
      data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
      axisLabel: {
        show: true,
        textStyle: {
          color: '#fff',
          fontSize: '1.6rem'
        }
      }
    },
    yAxis: {
      type: 'value',
      axisLabel: {
        show: true,
        textStyle: {
          color: '#fff',
          fontSize: '1.6rem'
        }
      }
    },
    series: [
      {
        data: [120, 200, 150, 80, 70, 110, 130],
        type: 'bar'
      }
    ]
  }

  draw(chart) {
    chart.setOption(this.option)
  }
}

export default Pie